package com.tencreat.domain.pt.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@ApiModel("开启下一期入参")
@Data
public class PtStartNextDTO {
    @NotNull(message = "当前期数id不能为空")
    @ApiModelProperty("当前期数id,活动列表返回的id")
    private Integer id;

    /*@ApiModelProperty(value = "开始时间")
    @NotNull(message = "下期截止参与时间不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;*/

    @NotNull(message = "下期截止参与时间不能为空")
    @ApiModelProperty("下期截止参与时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @NotNull(message = "开奖时间不能为空")
    @ApiModelProperty("开奖时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lotteryTime;
}
